package com.wing.cabinet.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.cabinet.model.entity.AuthorityMateriel;
import com.wing.cabinet.model.request.AuthorityMaterielForm;
import com.wing.cabinet.model.response.AuthorityMaterielVO;
import com.wing.common.utils.JsonResult;

import java.util.List;
import java.util.Map;

/**
 * 权限组限制物料表-Service
 *
 * @author
 */
public interface AuthorityMaterielService extends IService<AuthorityMateriel> {

    /**
     * 添加
     *
     * @param authorityMaterielForm
     * @return
     */
    int add(AuthorityMaterielForm authorityMaterielForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<AuthorityMaterielVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<AuthorityMaterielVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    AuthorityMaterielVO get4appById(Long id);



    JsonResult updateList(List<AuthorityMaterielForm> list);
}
